package com.yt.order.provider.dao.impl;

import com.yt.core.dao.GenericDaoImpl;
import com.yt.order.api.model.OrderInfo;
import com.yt.order.provider.dao.OrderInfoDao;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by liujunshi on 16-1-22.
 */
public class OrderInfoDaoImpl extends GenericDaoImpl<OrderInfo, Long> implements OrderInfoDao {
	public OrderInfoDaoImpl() {
		setNameSpace("com.yt.order.orderinfo");
	}

	@Override
	public void updateReserveStatus(Long id, String reserveStatus) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("id", id);
		params.put("reserveStatus", reserveStatus);
		this.getSqlSession().update(this.getNameSpace() + ".updateReserveStatus", params);
	}
}
